Ext.define('TS.view.base.CustomerSimpleList' ,{
    extend: 'Ext.grid.Panel',
    
    alias : 'widget.custsimplelist',
    title : '客户资料',
    columnLines: true,
    bodyPadding:0,
    frame : true,//面板渲染
    columns:[
            {header: '客户编号', dataIndex: 'customerCode',width:80},
            {header: '客户名称', dataIndex: 'customerName',width:200},
            {header: '联系人', dataIndex: 'contactMan', width:50},
            {header: '联系电话', dataIndex: 'telephone',width:100},
            {header: '手机号码', dataIndex: 'mobilephone',width:80},
            {header: 'QQ号', dataIndex: 'qqNumber', width:80},
            {header: '地址', dataIndex: 'address',width:200},
            {header: '收货地址', dataIndex: 'deliveryAdd',width:200},
            {header: '信用金额', dataIndex: 'creditAmount',width:80},
            {header: '信用天数', dataIndex: 'creditDay',width:80},
            {header: '许可证', dataIndex: 'sfdaCode',width:80},
            {header: '备注', dataIndex: 'remark',width:100}
    ],
	selType:'checkboxmodel',//设定选择模式
	multiSelect:true,//运行多选
	initComponent:function(){
		var st=Ext.create('TS.store.base.CustomerStore');
		
		Ext.apply(this, {
			dockedItems :[{
				xtype:'pagingtoolbar',
				store:st,
				dock:'bottom',
				displayInfo:true
			}],
			store:st
		});
		this.callParent(arguments);
	}
});
